/* tslint:disable */
/* eslint-disable */

import React, { FunctionComponent } from 'react';
import Taro from '@tarojs/taro';

export type IconNames = 'today' | 'news' | 'question' | 'money' | 'tanhao' | 'order' | 'team' | 'team1' | 'share' | 'fly' | 'refresh' | 'transform' | 'index' | 'invest' | 'user' | 'quotes' | 'flow';

interface Props {
  name: IconNames;
  size?: number;
  color?: string | string[];
  style?: React.CSSProperties;
}

const IconFont: FunctionComponent<Props> = (props) => {
  const { name, size, color, style } = props;

  // @ts-ignore
  return <iconfont name={name} size={parseFloat(Taro.pxTransform(size))} color={color} style={style} />;
};

IconFont.defaultProps = {
  size: 22,
};

export default IconFont;
